package 字节流.文件的拷贝;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author 陈鹏
 */
public class Example04 {
    public static void main(String[] args) throws IOException {
        FileInputStream in=new FileInputStream("src/IO流/字节流/文件的拷贝/001.png");
        FileOutputStream out=new FileOutputStream("src/IO流/字节流/文件的拷贝/001check.png");
        System.out.println(out);
//        String str="hello shit";
        int len=0;
        while ((len=in.read())!=-1){
            out.write(len);
        }
        in.close();
        out.close();
    }
}
